package com.pub.functions;

/**
 * Created by IntelliJ IDEA.
 * @author zhuangzhonglong
 * Date: 2008-3-19
 * Time: 16:05:17
 */
public class HtmlFuncs {

	public static String textToHtml(Object oText) {
		if(oText == null) return "";
		return oText.toString().replace("\r\n", "<p />");
	}

	public static String textToHtml(String text) {
		if(text == null) return "";
		text = text.replace("\r\n", "<p />");
		return text;
	}

}
